// import org.fusesource.jansi.AnsiConsole;

import java.util.LinkedList;

public class Main {
    public static void main(String[] args) throws InterruptedException {
        background a=new background(30,20);
        a.createBackground();
        snake S=new snake(new LinkedList<>(),a.getBackMatrix());
        boolean test=true;
        // AnsiConsole.systemInstall();
        S.init();
        while(test){
            System.out.print("\033[H\033[2J");
            System.out.flush();
            a.createBackground();
            Thread.sleep(400);
        }
    }
}